package com.sunnada.edu.system.login.dao;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.sunnada.edu.system.pub.dao.BaseDaoImpl;



@Repository
public class LoginDaoImpl extends BaseDaoImpl implements LoginDao {

	public Map getUserByUserId(HashMap<String, String> params) {
		List list = selectList("login_sqlmap.getUserByUserId", params);
		if(list!=null&&list.size()>0){
			return (Map)list.get(0);  
		}
		return null;
	}

	@Override
	public List<HashMap<String, String>> getUserMenus(
			HashMap<String, String> params) {
		return selectList("login_sqlmap.getUserMenus", params);
	}

	@Override
	public List<HashMap<String, String>> getUserFilterMenus(
			HashMap<String, String> params) {
		return selectList("login_sqlmap.getUserFilterMenus", params);
	}
}
